win32: Move variable definition to not cause gcc warning
authorBenjamin Otte <otte@redhat.com>
Sun, 21 Feb 2016 03:55:55 +0000 (04:55 +0100)
committerBenjamin Otte <otte@redhat.com>
Sun, 21 Feb 2016 19:44:36 +0000 (20:44 +0100)
It's only used on win32, so only define it there.

gtk/gtkwin32theme.c

index 50d45635696df3010513050ecbcee6925582afe0..282c414ac26fea047ebd4fef9c56b02b900b75f9 100644 (file)
@@ -480,12 +480,11 @@ int
 gtk_win32_theme_get_size (GtkWin32Theme *theme,
                          int            id)
 {
-  int size;
-
 #ifdef G_OS_WIN32
   if (use_xp_theme && GetThemeSysSize != NULL)
     {
       HTHEME htheme = gtk_win32_theme_get_htheme (theme);
+      int size;
 
       /* If htheme is NULL it will just return the GetSystemMetrics value */
       size = GetThemeSysSize (htheme, id);